package com.yoki.loginview.doWork;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.yoki.loginview.R;

public class UserActivity extends Activity {

    TextView WelcomeText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user);
        WelcomeText = findViewById(R.id.WelcomeText);
        String username="";
        Intent intent=getIntent();
        if(intent !=null){
            username =intent.getStringExtra("NameText");
            WelcomeText.setText(username+"，欢迎登陆");
        }
    }
}
